<template>
	<input @input="handleInput" :value="value">
</template>

<script>
export default {
	name: 'WInput',
	props: {
		value: {
			type: [String, Number],
			default: ''
		}
	},
	methods: {
		handleInput (event) {
			const value = event.target.value
			this.$emit('input', value)
		}
	}
}
</script>

<style>

</style>
